home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / cool / ge_cool.lha / GE_COOL2.1 / src / Matrix / TODO < prev   
Text File  |  1992-05-15  |  1KB  |  41 lines

  1.  
  2. Matrix.h
  3.  Bug in ... in constructor, using va_arg.
  4.  The arguments in ... cannot be passed by reference. macro va_arg does funny
  5.  casting and does not enforce argument passing correctly, especially in case
  6.  of passing by reference.
  7.  
  8.   In all the constructors:
  9.   Allocate all the column data in one chunk, then fill in the
  10.   addresses in the row vector.
  11. DONE
  12.  
  13.   ~Matrix, operator=, 
  14.   When deleting the matrix, delete only the first row, then the column
  15.   (see above)
  16. DONE
  17.  
  18.   operator+ operator* etc. (All non-destructive operators)
  19.   DON'T RETURN A REFERENCE TO STORAGE ON THE HEAP.  Return a Matrix on
  20.   the stack by value.  Use the copy constructor, then the associated
  21.   operator?= function.
  22. DONE
  23.  
  24.   operator*=
  25.   This allocates row vectors on the heap, then doesn't delete them!
  26.   Anyway, this needs to be re-written to use a single temporary row
  27.   vector, instead of a whole new matrix.
  28.  
  29.   inline Type& operator[](int row, int col)
  30.   New method, does the same thing as the current get method.
  31. DONE
  32.  
  33.   inline const Type& get (int, int);
  34.   change this to return Type, instead of a const reference to type.
  35.   (We're always dealing with numbers, right? so there's no need to
  36.   deal in references to Type.)
  37. DONE
  38.   
  39.   Nuke the map and reduce methods
  40. DONE
  41.